package com.intellagric.service.iftmonitor.ift_equipment;

import com.intellagric.common.pojo.LayuiDataGridResult;
import com.intellagric.common.pojo.ResponseMessage;
import com.intellagric.pojo.IftEquipmentType;

/**
 * @Author: zhy
 * @email: 1269679946@qq.com
 * @Date: 2018/10/20
 * @DESC： 设备分类类型管理服务接口
 */
public interface EquipmentTypeService {

    //增加设备分类信息
    ResponseMessage addEquipmentType(IftEquipmentType equipmentType);

    //删除设备分类
    ResponseMessage deleteEquipmentType(String id);

    //修改设备分类
    ResponseMessage editEquipmentType(IftEquipmentType equipmentType);

    //查询设备分类
    IftEquipmentType getEquipmentTypeById(String id);
    LayuiDataGridResult getEquipmentTypeList();

    //通过父分类查询
    LayuiDataGridResult getEquipmentTypeByPid(String parentId);
    //查询分类信息，并生成树形数据
    LayuiDataGridResult getEquipmentTypeTree();
}
